package designPattern.ObserverPattern1;

/**
 * @author jiangwz
 * @create 2019/10/30.
 */
public class Main {
    public static void main(String[] args){
        GamePub gamePub = new GamePub();
        gamePub.registerSub(new CrazyFans());
        gamePub.registerSub(new NormalFans());
        gamePub.publish("大事件: RNG成功杀入 S20 16强,恭喜他们成功了!");
    }
}
